from mcp.server.fastmcp import FastMCP
from util.http import httpClient
from api import register_all_tools

# 创建MCP服务器实例
mcp = FastMCP('chandaoAPI')

# 创建HTTP客户端
http = httpClient('http://localhost:8880/')

# 注册所有API工具
api_tools = register_all_tools(mcp, http)

if __name__ == "__main__":
    mcp.run(transport='sse')